﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BarcodeList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.weixin.Senior.Barcode.BarcodeList" %>



<%@ Import Namespace ="ZLCMS.Business.Util" %>

<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>

<%=_framePage.TabInfoHtml()%>

<div class="pageContent">   
   	<div class="panelBar">
		<ul class="toolBar">            
            <li><a class="add" href="/SystemManage/weixin/Senior/Barcode/BarcodeDetail.aspx" target="navTab" rel="BarcodeDetail"  title="二维码明细"><span>添加</span></a></li>

	            <li><a class="delete" href="/SystemManage/weixin/Senior/Barcode/BarcodeDelete.aspx" target="selectedTodo" title="请确定要删除二维码规则"><span>删除</span></a></li>
		</ul>
	</div>
	<div class="tableList" layoutH="55">
	<table class="list" targetType="navTab">
	    <thead>
			<tr>
                <th width="22px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
				<th width="155px" align=center>二维码</th>
				<th width="80px">有效时间</th>
				<th width="80px">二维码类型</th>
				<th width="80px">场景ID</th>
				<th width="120px">场景说明</th>
				<th width="80px">生成时间</th>
				<th width="120px" align=center>操作</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="repeater1">
                <ItemTemplate>
			    <tr target="uid" rel=<%# Eval("Id")%>>
                    <td><input name="ids" value="<%#Eval("Id")%>" type="checkbox"/></td>
				    <td align=center><img src="https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=<%# Server.UrlEncode(Eval("Ticket") as string)%>" alt="二维码" width="150px"/></td>
				    <td><%# Eval("ExpireSeconds")%></td>
				    <td><%# Eval("ActionName")%></td>	
				    <td><%# Eval("SceneId")%></td>		
				    <td><%# Eval("Memo")%></td>	
				    <td><%# string.Format("{0:yyyy-MM-dd}", Eval("CreateDate"))%></td>			
				    <td align=center>
				        <a href="/SystemManage/weixin/Senior/Barcode/BarcodeDetail.aspx?uid=<%# Eval("Id")%>" onclick="ZLAN_DWZ_EX.open(this);" target="navTab" rel="BarcodeDetail" title="二维码明细">修改</a>&nbsp;&nbsp;
				        <a href="/SystemManage/weixin/Senior/Barcode/BarcodeDelete.aspx?ids=<%# Eval("Id")%>" onclick="ZLAN_DWZ_EX.open(this);" target="ajaxTodo" title="请确定要删除当前二维码">删除</a>
				    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>

	</div>

<%= _framePage.GetPagerContentHtml() %>

</div>

